scores_file = open("scores.txt", encoding='utf-8')

line = scores_file.readline()

line = line[0:len(line)-1]

scores_as_str = line.split(',')

scores = []

for s in scores_as_str:
    scores.append(int(s))


def print_max_min_avg(some_list):
    print("The max element is {}; the min element is {}.".format(max(some_list), min(some_list)))
    print("Their average is {}.".format(sum(some_list)/len(some_list)))


print_max_min_avg(scores)
